Use __FBSDID and factor out some code from the symbol lookup routines.