Sox give Hamilton, Diaz minor league deals