It seems __MINGW64_VERSION_MAJOR isn't predefined.