Fix a couple of problem building libclang and libcache on OS X