Allow overriding shared library policy using environment variable.