Defines.h: make file C compatible
Defines.h: more C compatibility
capi: update + example code