Mark function prototypes with "extern"

Let's help the linker out a bit.  And be a bit more pedantically correct.