Fixed MinGW build