bugfix to use correct dynamic linker and rpath settings for shared libraries build outside of the chroot
changes to dynamic linker and rpath settings