Porting bup to OpenBSD

I run OpenBSD.  With these changes, all tests pass.