Fixed compilation with VS2010 and VS2008.