fix extern.h (move declarations to correct sections)