Order of linkage adjusted to accommodate LAPACK libs.