Adding ability to determine lapack on machine.

Reviewed in https://codereview.appspot.com/102920044/