Revert "[ELF] Only mark as DT_NEEDED libs that are strictly necessary"

This reverts commit r219353 because that seems to break buildbots.