Fix a build error on MinGW.