Refactor: Relocated linknode_t from dd_share.h to m_nodepile.h

The node piles are no longer visible at API level so linknode_t can
now be moved out of dd_share.h

It is most likely that the node piles will be replaced entirely in
future (probably 1.13).