Fix issues with linking against libbfd.a.

It also depends on libiberty.a and zlib.