Add compatibility for libxml + hhvm