Fix library linking config issues.