travis support and some fixes for ruby 1.8