Updates VS project to fix compilation errors when building in Release mode.
Some warning fixes.
Merge pull request #5790 from dumganhar/warning-fix-and-project-update

Warning fix and update VS project to fix compilation errors when building in Release mode