NATO faces challenges as it retools for the war on terror