Using latest CMake tree, separated cpp files, moved hwsd.h/cpp to 'functions'