[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
[scripts] added server 3.1.0 upgrade scripts
Merge pull request #744 from haiwen/server-3.1-scripts

[scripts] added server 3.1.0 upgrade scripts
[scripts] Add missing "if not exists" to sqls
[client] land new changes of new-sync for osx