fix compile fail on vs2010