fix tdmgcc 4.7 build