Looking at your comment again, I think you're right in that the LIBXML_XPATH_ENABLED define *is* for building libxml with the xpath features enabled. Is there a better place to put this? Even better, is there a place to put the define to enable it cross-platform?