The ifdef _HAS_BLAS line appears to be unpaired. Where should the endif go?