Fixed compilation errors under MS Visual Studio 2013