This MacAddict article has instructions and a link to a script to regain the missing developer tools from OS X:
Fortunately, there's a fix, and its name is Darwin. Apple's open-source operating system is binary-compatible with Mac OS X (in a very real sense it is a part of Mac OS X, redone slightly to create a stand-alone OS), and it does include the missing compiler tools. We've written a little shell script that'll take a mounted Darwin disk image andahemborrow the missing components for use under OS X.