Added CMake building system for libmemif