Makefile: NetBSD needs -lcrypt
krb5.h: add OpenBSD
spawn: NetBSD needs libgen.h
dist/bootstrap: remove unnecessary 'wait'
spawn: fix a crash
util.c, util.h: copy glibc's str[n]dupa()