handle linux' weird tty error codes
pids!
update ptywrap to not do buffering and wait for the child process
put includes into extra-source-files, fixes #2
space