Makes code still compile with the internal lapack

For the time being dgesvd is only available with external lapack
in due course this should be made to work with internal as well.