Fixed VS2010 build errors.