c++: sys: add extern C to header files
Merge pull request #1793 from BytesGalore/extern_C_in_headers_sys

sys: add extern "C" to headers