Fix libxml_use_internal_errors and libxml_disable_entity_loader usage