Hamilton homers in 13th, lifts Texas to win