make protobuf target now works on os-x and linux
clang complains about register depreciation
Merge pull request #63 from stephentu/master

fix some compile issues on OS X