Restore support for ruby 1.8.7

Don't expect this to continue!