Annan said terrorism would only be defeated " if we act to solve the longstanding conflicts which generate support for it . "