Add callbacks with extern "C" linkage