Fixes for OpenBSD