Mirror symmetry, Langlands duality and the Hitchin system