fix build on OpenBSD