Who cast the spell?: Class struggle and resource curse in South America