Fix build under Windows/mingw-w64