Streamlined the build path for mac

Changed the makefile.template to be more smart and pick up .c files from src instead of having to add them manually.

I am also seeing some problems with the resourceCompiler not parsing and generating IDs for a project I have. Might look into that too later on...