Marnus Labuschagne and Usman Khawaja guided Australia to a dominant position on day one of the third test against South Africa.