lib headers: Add 'extern "C"' for C++ usage.