Wrap the headers in #ifdefined __cplusplus an extern it all as "C" to make it natively compatible for c++