Framework for instrumentation functions (libthreadtrace)

Based on sample code via http://linuxgazette.net/151/melinte.html.
ctraced.c and cpptraced.c are simple test programs; major functionality
and definitions are located libthreadtrace.c.