Fix errors in system call generation.