Fix missing climits and incorrect dependency on non-qt builds