Activate line-highlight on Unix-OSes when running in X-Windows.
Dont use deprecated APIs.
Portable solution for detecting graphics environment.