Fix to build on OpenBSD