When using --with-macosx-sdk=10.8 or 9, use xcode-select -print-path

I want to be able to use of a separate Xcode installation (like a
developer preview) instead of the /Applications/Xcode.app one.

Change-Id: I1faa84d028a8df6b4fc61b321fd2a6cde9a0ab0f