more fixes for ruby 1.8 and travis