Fixed compilation errors under MS Visual Studio 2013
MSVS compilation warnings removed