Apply mingw patches as supplied by Roumen Petrov an Alon Bar-Lev