switch to cmake
import code from tycho-engine
purge old code