Patch for Cygwin and MinGW32.
Fix CMakeLists