Support Ruby 1.8

This should fix #150