remove ffi deprecation warning.