Corrosion and hydrate inhibitors