Fix compilation with old MinGW versions