c++: sys: add extern C to header files