Make it compile and run again!
Partially implement the first step of the porting into QSharedPointer.