Make Dir work in linux
Makr global variables as thread local in linux
Fixed DirEntry definition in linux