fixes for future OpenBSD support :(