Use cmake for build

Cmake-based build.