Move xcode SDK error checks into rules_c.mk so they dont affect typescript-only builds.