Added early support for mingw.