workaround: disable X code on when building without X