c++: core: add extern C in header files
Merge pull request #1783 from dangnhat/extern_C_in_headers_core

c++: core: add extern C in header files