Transforming the Rural Nonfarm Economy: Opportunities and Threats in the Developing World