Improve Qt5 dependency in cmake file.