Add extern C { ... } around blas code. This fixes compilation issues with MATLAB R2014a, which seems to use g++ by default to compile .c files.