Add OpenBSD support (fixes #774)

Thanks to @notzippy for this.