checking minimum protoc requirement and fixing lib dependency to reduce compile time