Add grantPrivilege to most packages to handle #825