fixed compilation on OpenBSD