[Bug 22540] CMake hangs when trying to detect and test MinGW compiler (gcc.exe & g++.exe)