[mr2964] fix compile on old GCC and VC10. thx to VirusGoD