Fix clang error about private destructor