Minor fixes for OpenBSD