Fixed compilation for gcc and clang
Started client code.

Almost all deserialize is done.
Need to tangle Client code with cocos workflow.