Change default exception flags for MSVC
Add support for shared libraries for MSVC