Add protobuf 1.0.0

Cleans up the build system, and some fixes.