Merge pull request #14 from Chilledheart/fix_sed_osx

[build] prevent bad sed usage under osx
[lib] fix searpc codegen issue