update FindGLEW to use the same variables as in later CMake files and make sure to include its headers before compiling c stuff
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}