Set RBX_PREFIX_PATH to the build prefix when building extensions

When building rbx with the same path settings as an already-
installed rbx, it now uses the former and not the latter to build
the gems.

Important to have for packaging.
Merge pull request #3008 from heftig/master

Set RBX_PREFIX_PATH to the build prefix when building extensions