Also add a patch by drochner:
pthread_key_create returns 0 on success; return values on failure are
not defined.
Remaining patches without comments:
patch-ab: adding an ifdef notyet in src/daemon/main.c
patch-a{c,e}: --start -> -D (no idea why)
patch-af: allow some Linux-only code also on NetBSD