build: bring cmake up to date.
build: allow building with CMake, verified on Linux.