Changed makefile to also generate shared library