More specific test for blas functions.
Provide replacements if BLAS not available from SciPy.
Merge pull request #1169 from chebee7i/issue1169

Provide replacements for low level BLAS functions for scipy < 0.12.