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 fix the errors from trying to use the
OS X framework when building an iOS target.
Merge pull request #834 from realm/tg-testhost

Change how Realm in linked into TestHost