port to Ruby1.9+ a little bit further
Merge pull request #4 from boutil/master

port to Ruby1.9+ a little bit further