Add OpenBSD support
Merge pull request #784 from dlsniper/openbsd-support

Add OpenBSD support (fixes #774)