Add global trampoline functions.

They'll be necessary for passing arbitrary C++ functions to Yang code.