Changes on the make file

Makes possible to use the lib as a dynamic lib