Fixed protofiles generation and dependencies.