Use #ifdef _WINDOWS instead of WIN32 to support WIN64