Tested on a clean OSX Lion install.

The xcode step not tested fully, I installed that separately through the app store, but the rest works with these modifications.