Some minor portability fixes around including the blas libraries

Switched to explicitly use cblas and corrected to use "C" external linkage. Verified on CentOS and Ubuntu.