CMake: Build framework independently from OTClient then link OTC against
it.

Now framework is built as a static library which should hopefully speed up
the build (in terms of compiling and linking).