tools lib traceevent: Modify header to work in C++ programs