Fix bugs for inserting instrumentation code into C and Java source code.