Geting C codegen setup with flexdims argument