nls: add rpath-link linker option to prevent linker errors