moved build system to cmake