MSVC build issue

Fixed preprocessor statement for MSVC builds. Use of TARGET_WIN32 breaks MSVC builds. Fixes #49.