Added #ifdef _WIN32 to windows files