Fix compilation problems on OpenBSD.