Fix Mingw build errors
Master still does not build in Mingw, because we now require Python for building, but it's a step in the good direction.
Master still does not build in Mingw, because we now require Python for building, but it's a step in the good direction.