fix a very rare bug in which CurSlot becomes greater than cMaxCurSlot
other minor changes to cmakefiles and iphone defaults
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}