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