Try to fix build from git using configure script.

The configure script has helpers (e.g. ltmain.sh) that are included in a
tarball but not a git clone. Some of these helpers are required to deal with
a version of libtoolize used to generate configure that differs from the
version of libtool on the build machine.
Revert "Try to fix build from git using configure script."

This reverts commit fb4e556aa544ce769e988edc47c28e7f8c88467e.
Revert "Fix build on systems with libtool >= 2.4."

This reverts commit c3fdd6745c9f21aa2c8d90d6b1aabbf4e1501622.
Remove libtoolize generated m4 files.
Add medians filter
Add medians filter for real
Medians: make small median function static
Medians: use descriptive strings for string list parameter
Medians: apply patch sent by JB
Medians: make sure list search terminates