fix compile fail on vs2010
Merge pull request #3817 from Dhilan007/master

[ci skip]fix compile fail on vs2010