Add dependency and linkage for lapack.