Fixed vs2010 build.
Merge pull request #43 from shonlove/fix-vs2010-build

Fixed vs2010 build.