calc: use Homebrew's cc and appropriate OS X SDK

Fixes #22015.