Missing header.
Reworked local extern declarations.