Fix a bunch of string format mismatches found by gcc's variadic checks