Set WINVER/_WIN32_WINNT ourselves before letting MinGW to set them to very low values corresponding to Windows 2000 on its own and preventing our code from seeing any later additions to the Windows API, such as AttachConsole() function used in src/msw/app.cpp. Closes #17677.