Fix build on strict-POSIX systems

POSIX says SIGSEGV et al come from signal.h, and waitpid comes
from sys/types.h (for pid_t) and sys/wait.h.

Now the examples build on linux.
Merge pull request #1 from ctz/posix-includes

Fix build on Linux