Fix RubyGems 2.2+ compatibility.

RubyGems since version 2.2 allows to reconfigure place, where binary
extensions are stored. This might allow easier sharing of gems between
various Ruby interpreters. It can be enabled by redefining
Gem.default_ext_dir_for method.

This patch is adding support for this feature into Bundler.