Link libSOGo with libdl on systems with glibc
ModulesConstraints tests all values of a multi-valued attributes
Link correctly against libraries used

Link the mapistore backend against libgnustep-base, libobjc,
libNGObjWeb. Link the SAML code against gobject-2.0.
Moved to abstract index_context instead of tdb_wrap
Use indexing generic code instead of tdb private funtions
Converted all the indexing code to indexing backends
get_new_folderID functions are now on mapistore_indexing
check ret value properly
use properly get_uri function and check ret value
avoid infinite loop when trying to update a folder id
mapistoreURI encoding should be done the same way as listContextForUser

stringByEncodingImap4FolderName is used inside [newFolder create] where is needed
no need to modify url
fix format logging uint64_t
OpenChange: Avoid crashing when creating embedded message in attachment

Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>
(cherry picked from commit 15a55f9f707247c9164e8fa7a102639744f686e5)
stringByDecodingImap4FolderName is not neccesary

For russian locale and characters nonexistent in latin1 sogo crashes
add try catch to all functions on struct mapistore_backend
use execinfo.h to get backtrace

Really poor backtrace because it will only have the frames from oc side,
I don't know why callStackSymbols is returning null, compilation flags?
if there is no password file for specific user, try to read global password file

This way we can have a master password for imap access
oc-sogo: try/catch to guard only the actual impelementation rather than *everything*

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc-sogo: Clean up AutoRelease pool and unregister threads in Catch handler

Most of the time we have "not yet implemented" kind of exceptions,
so it is better to clean up allocated resources

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>