Fixes compatibility with older versions of rubygems.