udpate msi/deb version to 3.1.0
[win] Fix compilation error.
[common] fix utf-16 issue under win32
Merge pull request #742 from Chilledheart/patch-1

[common] fix utf-16 issue under win32
[build] Add CMake Build System

  - remove key storage stuff
  - fix daemon build under osx with cmake
  - Set SOVERSION of libseafile to 0
  - remove shared library version
[common] use packed attribute if available
[cleanup] silence multiple compiler warnings

  - silence the warning of uninitialized head_id in putcommit-v2-proc.c
  - silence the warning of implicit declaration of g_open in test-seafile-fmt.c
  - silence the warning of implicit declaration of g_stat in test-cdc.c
  - silence the warning of uninitialized e in merge-recursive.c
  - silence the warning of bm->size >= 0 is always true in fileserver.c
[build] cmake patch for new-sync
[build] more cmake fixes for new-sync
[client] land new changes of new-sync for osx
[under working]removing avl