Initial OpenBSD support and some fixes
OpenBSD fixes