* Use std::this_thread::sleep_for to fix windows compile, mac compile
* one more place to swap the type
* fix type forward declaration
* fix windows warnings
* fix windows warnings
* removed delete call
* cleanup
* lower cpu activity of log thread too
* fix log messages
* do not enter threads into unordered_set, as it is unneeded
* do not compile in calls to disabled plan cache
* moved AQL regex cache from thread local variables to a class of its own
* more sensible thread creation and destruction