Add extern "C" guards for C++ inclusion.

Issue: PLCR-527