Initialize sa.sa_flags with 0.

Otherwise, blocking system calls might be restarted.
Synchronize shutdown of cjet properly.
Initialize the whole sigaction struct with 0 before using it.
Ignore any SIGPIPE signals.
Move main.c into the common linux subdirectory.
Make compile switches compatible with clang.
Update TODO.