Fix building the flex is not installed