Dir_cache rewritten
CMakeLists.txt: added linking against pthread
added initial support for threading