Build on additional Ruby versions on Travis-CI

* Make code changes required to keep support for Ruby 1.8.7
* Build on 1.8.7, 2.1.0, 2.1.1, 2.1.2 and 2.1.3 on Travis-CI