Modified CMakeLists.txt to smoothen compilation with MinGW-w64