Add xml compilation and fix proto references.