nitg/ffi: fix global compilation errors and warning on duplicated callbacks

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>