fix makefile for creating library