Fix out-of-tree CMake build
Fix CMake build to work with kernel cache. TIMESTAMP still undone