apply patch from mingw cross compile