Fix for mingw.