Compile on OpenBSD

I was playing with Godot on OpenBSD. A few small changes were neccessary to make it compile.