setup libs and makefile