Add CMake Build System

Part of https://github.com/haiwen/seafile/issues/692