builder: Fail if lex is not installed.

This completes the fix for commit a4800e2d4fc50f372a8b626333c4fbb9b8ca9633.