1.8.7 compatibility

Hello, 

I change few thing in order to make this nice module compatible with ruby 1.8.7.

My few tests seems to be good but I'm novice in ruby and I suggest you to test it by yourself.

By the way, thanks for this module his very close of what I want to use.

Maneau