Fix generation of system calls for clang