Make some of the build system work on OpenBSD.