fixed build error on VS2012 toolchains.
Merge pull request #1073 from kurodash/pr-builderr-on-vs2012

fix build error on VS2012 toolchains.