[x11] try not crash when x11 is not initialized.
[x11] use QTC_ENABLE_X11 to control x11 dependencies, make it possible to compile without x11 support.