Qt Creator - 'undeclared' error for Qt4 projects