FFI: c/c++ struct on stack as an argument or return value