Add flex dependency