one can use terralib structs in ffi.metatype