Use #ifndef USE_EXTERNAL_PUGIXML instead of defining USING_OIIO_PUGI.