Fixed MSVC compilation issues

Fixed MSVC compilation issues if header files are compiled as stand-alone source files (to build up a shared library).