Add linker flags so that shared libraries are found relative to either the wterl layout or the Riak layout.