add lib folder and update Makefile