add mem watcher
update cmake to generate KSlice.s4ext in build dir