Fixed some things in the makefile

Added dependencies on header files