Fix for RubyGems 2.0 internal changes.