Update makefile to link in libraries