Initial Qt5 support.

Built and tested with Qt5.3.
Mix X11 and XCB in some places. Dirty, but it works! :-)