Fix dependencies on header files

* ensure that `fprintf()` is available in src/main.c by including stdio.h
* update Makefile so that src/board.c is rebuilt if the header files change