For CMake/Xcode avoid passing external LIBS to target_link_libraries.
Merge pull request #583 from halide/bug581

For CMake/Xcode avoid passing external LIBS to target_link_libraries.