VS2010 compilation fix