Changed Makefile to generate static library