bug fix for mingw detection