Add openblas flag and if/else for extra-libraries

Adds the openblas flag and the changes to support the libraries.  Both blas and lapack are in there, so if its used, then those two shouldn't be included.  I have openblas installed in /usr/lib/openblas per recommendation by the developers.
Merge pull request #96 from jshahbazi/patch-1

Add openblas flag and if/else for extra-libraries
change rand() to drand48_r

(I have tried also random_r but got segfaults on exit) (?)