Some syscall fixes