Fix compilation issues in third-party projects.

Switch libcxx and protobuf to my forked repositories,
and fix compilation problems in them.