(Mingw) Add preliminary Mingw patches