Address most LLVM warnings
Adapt tests so they can run with the serial harness used in older automake versions