node-ffi: fix Callback interface