Fix VS 2010 errors