[build] qt: Changes to make building with Qt5 possible. Builds and simple tests application using qt runs.