1.8.7 compatibility
Merge pull request #8 from stouset/ruby-1.8.7

1.8.7 compatibility