initial attempt to autodetect lapack and blas