Fix thread resources leak.
Fix a deadlock
fix build issues
Fix a deadlock.
Fix segfault
Fix iri support with threads
Fix tests build fixes
Fix build issue with last gnulib version.
Fix a build error with new gnulib versions.
Fix a tight-loop when a recursion level is used.
Fix bug due to ambiguous variable name.