Allow envvar override to build shared libs