Markram and Amla set Proteas up for good start before double run out undoes the hard work