Conditionally include xterm.h using HAVE_X_WINDOWS.