handle new libxml2 with different IO requirements