partial support for mingw