fixed compilation when GP_USE_SOCIAL is defined