Fix the Mingw build under Windows.