[build] Update scripts for correct rpath for linking with CLN.