Fixed preprocessor to work for MSVC