Check for flex when compiling from repository sources