minGW fix