partial NetBSD port
Merge branch 'master' of https://github.com/cjdelisle/cjdns
build works on NetBSD
netbsd port adjusts