Pass sysroot option to linker. Gives $PREFIX/lib priority at link time.