CMake Version 3 / qt compatibility bug fix