Add cmake build to tess2.

For Emscripten, we build tess2 rather with CMake.