add MYLIB_EXPORT for public API
MYLIB_EXPORT should be added to the function declaration of all public functions. Without it we can't compile shared libraries on Windows. See http://www.cmake.org/Wiki/BuildingWinDLL. And this causes the Windows binaries to be huge compared to the Linux binaries (compressed 60MB versus 7MB).