Updated makefile to create shared library