autogen.sh: Report an error if yacc or lex are missing.

Thanks to Uli Martens for reporting this.