Fixed issues related to building dependency tree.
Updated Makefile to also build compiler templates.