build: removed redundant libelf var and added -rpath for location