NB: These were not imported properly. The Id RCS keyword lines were not
cleaned up, and there were no NetBSD keywords added. Perhaps Re-import
correctly?
- constify link-set iterator
- do RF lookup only if any RF has been built
- fix global symbols shadowing
- const static -> static const
- don't redefine `uintptr_t'
- use `unsigned long' in __DECONST()
- fix AH_RF() macros
- __va_list -> va_list
- add missing struct trailing element
- add a few #ifdef AH_DEBUG block to avoid empty if() statement
- some other nits...