Fixes builds for Ruby 1.9
Adds Travis configuration