Fix chunking in libimobiledevice and remove obsolete logging code