Fix compilation with gcc.

Fix compilation on windows with mingw gcc.