b58tobin: Simplify zeromask calculation (fixes bug encountered when compiling with LLVM)
Address most LLVM warnings
Adapt tests so they can run with the serial harness used in older automake versions