Fix errors when compiling with newer versions of bfd.h.