Fix build on OpenBSD and fix small typo. (Bug #3502)