Some fixes for bug in v1.7.0

Fixes a couple of bugs and adds support for detecting and using openblas instead of Atlas in _dotblas

Lets close this PR and i'll split it into single commit PR's to make it easier to handle.