Some CentOS compilation fixes + added Qt checks.