Interrupt-safe system calls

Here are some patches, which wrap all relevant system calls by interrupt-safe variants. This is necessary for a seamless parallel computing. Andreas Steenpass had tested it meanwhile.