I attach the patch for compiling under OpenBSD.

Please, forget the first patch.