Fixes compilation on Mingw.