Fix CMakeLists issue when the MINGW variable was not defined