Fix formats.
Fix warnings.
OpenBSD support