Fix forkptyrouter plugin compilation on Hurd

While at it add missing linkage to libutil on other platforms
and fix compilation on DragonFlyBSD.

OpenBSD and MacOSX manpages does not cite the need to link to libutil

Possibly Fix #694