Windows compatibility fixes.
Add export macros to all symbols that should be exported for use as dynamic library on Windows. All examples compiling on windows. Resize bug remaining, but otherwise functional.