OpenBSD support (fixes #878)