Thanks everybody for your help and advice.
While waiting for the new library to show up in git, I manually updated it in my installation and all problems are gone.
The new library also seems to handle errors in a much better and robust way than before.
Thanks again!
Ciao