CMake and MinGW

By apalagin