Backported Dropbear's changeset 882 and disabled stripping of links.