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

Sorry i missed that i will make changes in cmake and add the commit.