lib: update mnit module to the latest FFI spec