Egypt needs economic reform, but must heed warnings from the past