Fixes for OpenBSD compilation. Fixes #826, as suggested by pstumpf.

Fixes #826.

Solution is the same as what was suggested there, except that instead of '#undef _P', I just changed the "_P" declarations to "P", with no adverse consequences.