Update makefiles for Xcode 6 + 10.9.

An set of updates to make makefiles work with 10.9. /xcode 6.