udpated makefiles to build dynamic libraries on linux and mac
updated to clean .o object files as well