Committed patch from Antoine Jacoutot to add OpenBSD support

Thanks for the contribution!