make it work in Ruby 1.9
add travis config