Handle mingw as a sub-target of windows