Changed to Apple's recommendation for copying headers for dylib and C++ targets.