Run T7478, plugins06, T7918 only when dynamic libraries are available

as they fail in a non-helpful way otherwise. This should help the
testsuite pass on travis.