Fix compilation with MinGW