Port away from KSharedPtr, make compile

Port to QExplicitlySharedDataPointer, adapt to kdevplatform API changes