e-xml: Add C api

Makes it easier to use with C projects (especially those that don't allow C++ code)
Sounds like one for Ben to sort out. I'll leave him to deal with this. My gut feel is we should be linking with $(CXX) rather than S(CC).