Support ruby 1.8.7

I realize that 1.8.7 is old and unsupported, but the change is minimal and it opens up the project to those without the luxury of immediately upgrading.