Use *mut for out parameters in ffi functions