Backports of newer Ruby features to older versions.