Setting link rules for both install and build tree.