fixed makefile for static library build