Add extern "C" to declarations of C symbols