Fix compiler errors for Visual Studio 2013.