Fix compile fail on vs2010