Changed to make it work with Ruby 1.8
Merge pull request #5 from lcharette/master

Ruby 1.8 compatibility