Fixes so we can build against LAPACK