Hildah Magaia scored twice inside 10 minutes as South Africa won the Women's Africa Cup of Nations at last, winning the final at the sixth time of asking, beating host nation Morocco 2-1.