lib/bsdutil.h: Attempt portability stuff