Fixed the makefile dependency build stuff so that phony targets work properly again.