[compiler/c] supporting some primitives, bug fixes