Fix travis builds in ruby 1.8