Fix build for language-java >= 0.2.7