add libs and makefile