Fix a ton of warnings when building the log profiler with newer zlib versions.