adds lapack detection