Removing dependency on flex-mode.

We don't need it anyway, and it doesn't have licensing information.