mainparts.mk: add more generic global include files
libcurl/c: use the makefile includes

centralizes deps and generic commands