Fix broken Qt5 linking.
* Prepare for Qt5: Use portable header names & disable QT_EXPORT_PLUGIN2() when needed.
* Use xcb_generic_event_t instead of XEvent for x11EventFilter() in Qt5.