Add missing external declarations.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>