fixed the Makefile to make static and dynamic libs in Linux