Removed VS2010 compiler warnings.