curl makefile fixes