Take care of the extern "C" for metrics classes