Update for mingw building.