Fix compilation on OpenBSD