Update CMake scripts to recognize Qt 5.0

duplication of #834