Fix ffi declaration for clone