Added Lapack in linalg.h and a fixed a minor #elif.

I'll have to check this a bit. Will get back!