Added flags for c++11 for mingw.  Switched QWidget point to QPointer<QWidget> to fix bug #10