Australia lose four wickets chasing record 539 target