Improve Bazel/JNI portability (#611) * Improve Bazel/JNI portability * Update go and closure bazel addons