libcompat: silence -Wdeprecated-non-prototype
by removing unnecessary re-declarations and converting K&R-style
function definitions.
Differential Revision: https://reviews.freebsd.org/D43723
Reviewed by: imp, emaste
(cherry picked from commit 12bae251fbfa33f375d134e0840d88c4363b8b94)