Create metatable in C code.