Fix MinGW build problem