Fix compilation with mingw.org's MinGW.