Add support for wine+mingw environments