Fix a MinGW compatibility issue