Fixing compiler errors found in Visual Studio Express 2012