Lionel Messi broke the World Cup scoring record as Argentina beat Austria 2-0 in Dallas to secure their place in the knockout stages.