Never, ever, ever bad-mouth a previous employer during an interview.
Ever.
Even if you worked for Satan himself, and he had Kafka and Joseph Heller design the Waterfall development process, and your team lead had the IQ of a telephone pole and the personality of a Comcast customer service rep.
You can say you weren't a good fit. That you felt the toolchain hurt developer productivity. Talk about how you want to be part of an organization that will let you hit your maximum level of achievement. Talk about how you hate bureaucracy because it puts barriers between you and the work that needs doing.
That's all fine. Show me, the interviewer, how driven you are to create.
But the second you start talking about how miserable you were, or how much of an asshole you thought your boss was, or about how much of an idiot your team lead was, you've basically cost yourself the job.
You might be completely right, but if you start talking about this during an interview, you come across as an antisocial, whiny, needy child. If these problems were so upsetting, why did you stay so long? Why didn't you try to fix things?
I want people in my company that will actively fix problems, not just complain about them.
I, the interviewer, can't change anything about your last job, and complaining to me about it doesn't help either of us. I'm going to wonder how you'll be to work with if you can't put the past behind you. I'm also going to wonder what you'll say about me, and the team, when you leave. Will you paint us in the same light as the job from hell?
If you whine about how much you hated your last job, all you do is turn on every red flag I have regarding personal interaction.