added mingw detection