handle OpenBSD configuration properly, fix #1581