add openbsd compatibility patch (thanks, wbx)