Fix error linking libmetrics.a from C++ / Objective-C++ code.