Support ruby 1.8.7
Merge pull request #12 from kjg/ruby187_support

Support ruby 1.8.7