bison-3.x: fix build for good this time

 - Bison 3.x no longer compiles without Perl.

 - Don't try to run the test suite unless flex is available.