Fix stubs of syscall implementations