fix compile error when lapack is not available