Fix flex and bison modes.