Powell in North Africa to encourage democracy, fight against terror