Fix Makefile to use a dynamic libcurl