fix library makefile