Fixed minGW build