[FIX] some warnings about missing function prototypes