Fixing compile issues on Windows Visual Studio. Note that static libraries ONLY can be built with Visual Studio due to STL DLL Export Issues.