Better Linux check for pty.h