Switch to side-by-side view

--- a/src/rcldb/rcldb.cpp
+++ b/src/rcldb/rcldb.cpp
@@ -56,6 +56,7 @@
 #include "ptmutex.h"
 #include "termproc.h"
 #include "expansiondbs.h"
+#include "rclinit.h"
 
 // Recoll index format version is stored in user metadata. When this change,
 // we can't open the db and will have to reindex.
@@ -793,6 +794,7 @@
 #ifdef IDX_THREADS
 void *DbUpdWorker(void* vdbp)
 {
+    recoll_threadinit();
     Db *dbp = (Db *)vdbp;
     WorkQueue<DbUpdTask*> *tqp = &(dbp->m_ndb->m_wqueue);
     DebugLog::getdbl()->setloglevel(dbp->m_ndb->m_loglevel);
@@ -1170,7 +1172,8 @@
 void Db::waitUpdIdle()
 {
     m_ndb->m_wqueue.waitIdle();
-    LOGDEB(("Db::waitUpdIdle: total work %ll mS\n", m_ndb->m_totalworkus/1000));
+    LOGDEB(("Db::waitUpdIdle: total work %lld mS\n",
+	    m_ndb->m_totalworkus/1000));
 }
 #endif