Compiles in Qt 5.3.0
Now using QSharedPointers liberally to make sure memory gets is cleared up BEFORE program exit.