[build] prevent bad sed usage under osx
add clang-format support
[build] add cmake build system

 - fix permission in searpc-codegen
 - remove shared library version
 - enable test