add rpath back for library build

this broke library usage completely when it was removed