Fix a bunch of compiler warnings about wrong format types.