Added syscall handler and some errno constants