Fixup pty compilation on hurd / dragonflybsd

Fix #756
Fixup forkpty ifdefery for dragonfly / freebsd

They are negated so we should AND them
Merge pull request #758 from xrmx/ptyfix

Fixup pty plugin compilation on hurd