Change Makefile dependencies; update lib