Fixed up some errors. Still not working with the lapack shared library