add GPL header to treehash.c and add missing includes to cmake.
add GPL header to treehash.c and add missing includes to cmake.

tangent-opensource/coreBlackbird,pyrochlore/cycles,tangent-opensource/coreBlackbird,pyrochlore/cycles,pyrochlore/cycles,tangent-opensource/coreBlackbird