Fixes enabling build with <toolset>msvc 

This pull requests delivers a bunch of fixes that enable build with Visual C++ (I use Visual Studio 2012).
* Generate static library for <toolset>msvc as the library does not dllexport anything (yet?)
* Disable warning C4996