replaced build system with cmake