collects dynamically linked libraries for an elf binary