nitg: fix C return type of callbacks to Nit

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