nitg: minor optimization and cleanup

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
nitg: fix errors related to mainmodule (.mk file and generated binary)

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