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