Fiexed to build with MInGW