Build with Qt5. Various fixes.