Ruby 1.8.7 compatibility

Interested in merging this in?