MinGW build fix