only #include mingw_compat.h if mingw