Declare all C callbacks as extern "C".