fix for ruby 1.8.7
Merge pull request #10 from jlambert121/ruby187_fix

fix for ruby 1.8.7