Makefile: add support for curl