add lib support in Makefile