The behaviour of cross-compiled Windows binaries depends heavily on the toolchain components, including MinGW-w64. When the toolchain is not provided by a distro package manager, determining the exact version being used can be difficult.
This PR detects and logs the MinGW-w64 version when cross-compiling for Windows, simplifying debugging when issues like this arise.