add cgi, error, http and Makefile