Add C-linkage indicators for TSL

Make the TSL callable conveniently from C++ code, using C linkage. Some
files don't strictly need the external linkage indicator, but include it
anyways in case these files contain external calls at some point in the
future.