Fixes so tests compile and run remotely.

Fixes include:
- dont set or change LDFLAGS, but set LD_EXTRAS instead
- fix compilation errors for iOS based builds with objective C code
    - fix test cases to create classes instead of relying on classes from AppKit 
    - rename things where it makes sense


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221496 91177308-0d34-0410-b5e6-96231b3b80d8