Fix build using Clang on OS X maverick.
Update the build to properly use the externals.