Changes in makefiles

MADE:
--> Updated makefiles to compile both shared and static libs