Patch for Cygwin and MinGW