fix warnings found by Visual Studio 2012 analysis
===VersionHistory:None===