Fixes for Clang and libxml2