Add workaround for rubygems/rubygems#763

This is a temporary workaround to support 1.8.x builds on Travis CI, due
to a known bug in Rubygems 2.2.0. Without this workaround, all 1.8.x, ree,
and jruby-18 builds will fail.