config: handle UNMANGLED_ paths consistently

Move UNMANGLED_LD_LIBRARY_PATH to the same location as UNMANGLED_PATH.

This prevents the variable from being set multiple times in the
'extra_prefixes' case.
environment: set dyld library path only on darwin