changes to work with ruby 1.9 and 2.0
Merge pull request #1 from Tafkas/master

changes to work with ruby 1.9 and 2.0