Support Ruby 1.9

This fixes issue #6.