Fixing OpenBSD compilation issues, similar to lapis issue #64