lib, tools, pan: old-style function definition fixes

No functional changes. No "cleanup". Just fixes for
"old-style function definition" compile warnings.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>