Added "extern "C"" declarations for C++ compatibility