fix ruby 1.8.7 builds
Merge pull request #12 from jlambert121/ruby187

fix ruby 1.8.7 builds