Ruby 1.8.7 compatibility

Build currently fails with Ruby 1.8.7... This will fix it.