Yes, one would think, but we live in world were governments are not the ones with most power.
In Finland we have situation with mining industry, which makes Finland appear like 3rd world country.
Foreign companies can come to Finland, get mining permit, and collect whatever valuables there are, with zero royalties paid for country itself. Even most of the worst 3rd world countries claim certain small % of market price. Over here, nothing. State lives under mantra of "employment". That every measure taken is good, if it creates few "jobs".
We can look Sweden, where state makes fortune out of mining industry. State of Finland decided to step back, and allow free market to take over. Any company, could abuse the out-dated legislation, make mess, collect profit, move out. Leave locals with polluted environment. All promised taxes of profit that company should make, disappeared in tax paradises. It has been widely acknowledged as drastic mistake, but there is no action to change how things are. One job today, seems more crucial than anything else.
If sort of semi-civilized, perhaps only mildly corrupted country as Finland is unable to prevent abuse, what would do country where nothing ever worked out? All legal. All business as usual, but one can't say it would not be abuse.
If specific African countries would get paid what they deserved for resources that are now takes half-free, it wouldn't necessary solve a shit. But at least one could tell outsiders don't abuse the country, shit happens for other reasons.
There often appears to be thinking that incoming immigrants are the problem. I agree to certain point, but I rather would point out reason why their previous life in homeland is so unbearable they need to move out. I don't believe too many would absolutely insists moving in some shitty ghetto in western world, if one would have any sort of future in original country. To allow people have some sort of condition is not much of charity for them, but solving problem of ours (Of course, if you consider drastic changes in demographic as problem).