Fixes found while compiling on OpenBSD

Just a couple things that came up while compiling on OpenBSD.