Fix building for recent mingw-w64.