simplify MEM in c backend, so it compiles as c