Make compiler-rt tests work with relocatable SDKs on OS X

Reviewed at http://reviews.llvm.org/D4047