Updated cmake build scripts.