Fix for gcc 4.6 linking errors and compile errors in the tracing framework.