Fix some bugs in configure.ac on OpenBSD