Ruby 1.9 compatibility
Merge pull request #1 from arturopuente/1.9

Ruby 1.9 compatibility