edited Makefile to make the shared libraries work