Guard pty.h inclusion