Fix MinGW build.