Enums for C++ via gcc-xml

This code is currently not working, but it is very close and is being submitted so contributors (@scopatz) can test it locally.