Big refactoring of libxml-tree, part (1) (everything compiles)