make an in-tree LAPACK reference implementation usable.

Note that by copying a reference implementation to the code base we have the burden of taking care of it that it's up to date.