Added extern "C" declaration to header file for C++ compilers