fix bfd build with gcc