Small changes to make this gem compatible with Ruby 1.8.x.
Merge pull request #1 from Dirklectisch/1.8

Small changes to make this gem compatible with Ruby 1.8.x.