Make base library directory configurable

Newer toolchains are putting libraries in /lib/ARCH rather than straight in /lib