Fixed cmake build process.