fixed build for OpenBSD