src/ffi: do not declare the impl signature before the custom C code