Fix rpath for libraries