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