ENH: Add build support for openblas.

Backport of gh-3642 and gh-3688.