Remove unused include.
Compile the UI parts only if QtWidgets are available.