Fix compilation on MinGW.