Fix INSTALL_PATH issue under Mac.
Fix rpath problems.
Let other platforms to use Xcode settings for precompiled headers too. (make, ninja)