Include missing header in 5-7

Include sys/stat.h in writetest.c.
Add top-level Makefile

* Add a top-level Makefile to build and clean all project.
* Update all Makefiles missing the "all" target.