Make the Linux pty code actually work.