added library dependencies; changed Makefile