Fix compilation bug when clock_gettime missing
Allow new states slowly even when queue full (fixes Axel Beckert lockup)
Dup to pty to prevent ssh from reading our stdin

Dup the pty to STDIN to prevent hour the exec'ed ssh from consuming our
early input.
Due to the fact that mosh-server copies the pty settings from the pty it
as when starting, we can't set that one to a raw.

This are probably a combination of effects cased by fcc629ac and
18dc967c.

This probably fixes #366

[Closes #369]