Add C support (work in progress)