ENH: Add build support for openblas.

Backport of gh-3642 and gh-3688.
Merge pull request #3690 from charris/backport-1.8-3642

Backport 1.8 3642