Added support for building ec and el with CMake.