(Mingw) Preliminary Mingw patches