Gates stresses US long term commitment to Iraq