Fix flex for building on Darwin.