Added support for building with CMake