MinGW toolkit compatibility fix