Add missing extern "C" directives in header files