Fix MinGW build