Improving the make file

Now the make file install the lib,
and tests are using the system lib