Change how Realm in linked into TestHost

I'm not entirely clear on why the TestHost target is being built at all for test-all, but this appears to make it at least work rather than give errors about trying to use the OS X framework when building an iOS target.

@jpsim