Cmake stuff.
New delete etc.
fix time.