Fixes to make dgesvd work with new lapack