[qt] fix compilation without x11 enabled.
[qt5] no-x11, format
[qt4] split qtcurve_plugin