get rid of boilerplate switches in posix_acl.h