Fix up lldb cmake linker flags for MacOSX.

Change r210035 broke the Darwin cmake build.  The
initial change was intended to stop the --start-group/--end-group
linker flags from being passed to non-gcc/clang-looking compilers,
stopping MSVC from warning on linking.  That change, however,
caused MacOSX cmake-based builds to start using the --start-group/
--end-group flags, even though the MacOSX linker doesn't support
them.  That broke the MacOSX clang build.

The fix keeps the newer check for a gcc-compatible compiler, but
specifically excludes MacOSX.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@211123 91177308-0d34-0410-b5e6-96231b3b80d8
Those were not the right defines for memory errors, and the right defines aren't
available.  So going back to a generic error instead.

<rdar://problem/17058708>


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