Add extern "C" around prototypes.

This fixes the unresolved symbol problems with llvm_trace