Update SDK samples

For the header dependencies, I can make a Makefile based on the -MM and -MF output of GCC (i.e. resolve dependencies each time a C file is modified), but I don't think that the samples are intented to be modified very often.