Backport of rb{,x}-trepanning to MRI 1.8 with some tolerance for MRI 1.9.2