make it possible to build nativly wth mingw again

maybe we should try to detect mingw