Add «extern "C"» declaration for easier C++ integration