Improve Qt5 checks