Fixed Visual Studio 2013 build errors