changed build system to cmake