Add debug hook and fix definition propogation.
Fix header guard name issue.