Mingw compability