If an object cannot have links, break the loop instead of having a giant if block.
Get library path information through scanelf.
Use functions.sh from gentoo-functions.
Update required package information.