Support ruby 1.8.7

Ruby 1.8.7 is still the system default in Mountain Lion. It's not too much of a problem to support it to.