Twins agree to deal with 2-time All-Star slugger