A few OpenBSD fixes

I still couldn't build on my box, but it's a start...