enable build on OpenBSD

Tested on OpenBSD-current running on amd64 machine.  I don't have a FreeBSD box to verify that this didn't break anything.