fix errors that BLAS and LAPACL lib are not linked in MathLib

linking BLAS and LAPACK lib in MathLib was needed