delete dead code, make some C functions static, etc.

trying to get the build time down... did not help much,
unfortunately.  The worst of it seems to be ./cfg/, followed by
./bfd/.  The large overheads of both seem to be from Cgo; it's
worse in ./cfg because that uses C++.

Someday I'll build my own CFG.  With blackjack, and hookers.