adjust for newer mingw