portability patches in rgw