Support Ruby 1.8

This should fix #150
Backporting looks a little unwieldy, though. Requiring it in every test file would be a pain, and monkey patching the global namespace seems like a bit of a nono, unless completely necessary.