add support for the --enable-shared-gems flag

This change would allow a user to install any new gems to a local path using "--path", yet still leverage any compatible gems which are installed on the system.