Add workaround for Bazel build on macOS