Fix warning for main function return type/value in gen_c code