Adjust build scripts to account for dependency detection, also build .proto files for locally installed versions of protobuf and grpc.