You don't need to sign up for a developer program, or even download the full Xcode IDE. You do need to install the compiler tools with
xcode-select --install
I see, thanks! That clarifies things a lot.