Use class, namespace & reference in extern "C" prototypes.