Mark all C functions as static.

This marks basically everything except for the 3 most important
functions as static.

Signed-off-by: Austin Seipp <aseipp@pobox.com>