Fixed preprocessor statement for MSVC builds. Use of TARGET_WIN32 breaks MSVC builds