Fix build error and a warning on OpenBSD