packages: Upgrade flann, geos, qt
packages: Fix incompatibilities with new automake

There are a few command renames that have progressed from warnings to
errors. There is also a shipped bug where top_srcdir can be used
inside the TESTS variable. The only option is to not use it.