compilation error fix for win32.
Merge pull request #5455 from dumganhar/vs-fix

compilation error fix for win32.