fix #261, only link libxml2 if WITH_LIBXML2 is TRUE