Add missing function prototypes.

Useful to avoid warnings when you compile with ``-Wmissing-prototypes``.