made compiler util in C backend a little more modular for FlatFnCompiler