Before Steve Jobs built the world’s most iconic company, he nearly wrecked it. His mistakes hold lessons for every founder.