Fixed preprocessor definitions for Windows