Workaround for problem with remoteX connections using Quartz 2.7.7.
Merge pull request #5844 from alja/from-CMSSW_6_2_0_SLHC18

slhc: Fix crash on remote X connection using XQuartz version 2.7.7