Update Makefile so that it generates shared objects instead of static ones