Fixes to format specifier strings and size_t usage.