O'Malley knocks Clinton on Iraq, Libya