South Africa's proposed changes to its mining legislation attempt to create more certainty for foreign investors.