Unify system test feature detection and add missing prerequisites
Use the feature-test
tool to detect feature support everywhere in system tests. Previously, sometimes features were detected with environment variables set by configure.
Some system tests were also missing a proper prerequisites check. This currently doesn't fail in CI, since those tests are turned off by configure magic. Using a proper prerequisite check is needed for the pytest system test runner effort and is also more consistent.