Remove the WIN32 option in CMakeLists.txt's ADD_EXECUTABLE command which was breaking the Windows build, causing it to look for WinMain16.