qt5: some build fixes