handle a variety of mingw-based windows mkspecs