Fix inclusion of pty.h header

On OS X this is part of util.h.