Build system cleanup, QT5 compat, update