Added support for Ruby 1.8.7 (often a default Ruby version on OSX)