Update for mingw compile.