Remove all linpack_lite code and replace with LAPACK routines

This is the same as #3916 but rebased on master rather than merged