macos:  Patch _SetClip, _GetClip, and _ClipRect