Add support for WITHOUT_CLANG

(cherry picked from commit 051a1740eb434e317451c09b72ae09c81cbfa1c1)

Change-Id: I60b7d1fa958557d13b74563c07f694b86d6a6d6f
Add 'mini' protoc optimize type and java library dependency.

Change-Id: I39520ffe50b12b96ecc9479d72557a8401b1f7fd