Fixed compiling in MSVS

added preprocessor defines to make compiling work in Visual Studio