support for mingwin compile on osx