Fix compiling of correct code depending on version of libimobiledevice