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

@srgnuclear could you please explain why this change was required? (I don't remember exactly - we had redux earlier but then we added "core" module later to accommodate some other stuffs). me or Khaled may have missed something here.