support ruby 1.8.7
Merge pull request #22 from jlambert121/dep_fix

support ruby 1.8.7