Technology Adoption with Production Externalities