Makefile.am : Fix DISTCHECK_CONFIGURE_FLAGS.

The required flag changed from --enable-gcc-werror to --enable-werror
some time ago.
configure.ac : Require flac >= 1.3.1.

Earlier versions of FLAC had a couple of CVEs.

Also AC_SUBST the HAVE_EXTERNAL_LIBS variable.