Workaround for Clang pch include bug with help from Masashi Fujita.
Workaround for Clang linker bug where it can not find shared libraries in rpath directories. The solution is to specify all linker targets every time.