fix compiler error caused by syscall