Updated Makefile to download and build dependencies correctly.