Fixup pty plugin compilation on hurd

And Dragonflybsd which i assume nobody is using :). While at it fix the forkptyrouter ifdefery that i got wrong. This should be cherry picked to 2.0 i think.