You can use MATLAB Compiler to create a standalone application from your MATLAB Script. If you are planning to create a shared library, dll, or a .Net Assembly, you might want to consider MATLAB Compiler SDK which provides the functionality to build these from your MATLAB source code.
From the support for MATLAB toolboxes page for the MATLAB Compiler product listed here, it does look like the 'lsqlin' function is supported for building standalone applications.
You can review the example listed at the following link on how to create a standalone application from MATLAB and build yours accordingly: Create a standalone application from MATLAB