Completely compatible with Ruby 1.8.7

Tested, seems to be working now