fixed up the makefile to work with templar