Updates to support building two gems (core and extension).

This PR is the companion to the `concurrent-ruby` PR [#205 "Builds two gems from one repo"](https://github.com/ruby-concurrency/concurrent-ruby/pull/205). See that PR for details.