e-xml: Add C api

Makes it easier to use with C projects (especially those that don't allow C++ code)
This doesn't look right to me. If you compile with g++, libstdc++ is pulled in automatically. I'm concerned that somewhere we have specified gcc rather than g++ as the compiler