Fixed compile errors in syscall.c