Add extern "C" for C++