The problem here was that the previous version of libimobiledevice was an unstable version, which was used to be able to work with ios5.
With the latest update the stable version works with ios5, but the library version is libimobiledevice.so.1 and not libimobiledevice.so.2.
My fault I know, but I thought it better to go with the stable version if it works.