support old cmake, revert gtk detection in diagnose script