Add compatibility with older rubius

Tested with 1.8.7, 1.9.2, and 1.9.3
Merge pull request #1 from pcasaretto/ruby-backwards-compatibility

Add compatibility with older rubius