Remove dependency on libbsd:

1) it is not widely installed
2) it does not provide everything we need
3) it does not compile everywhere very easily
4) we require only a handful of routines
5) this is actually easy to do now with autoconf