BUG: fix a few fortran ABI bugs on Mac OS X + MKL.

Consolidate Accelerate/etc. detection code into one place.