added ability to complie template files into executable

This should make running the executable a bit simpler as we can simply
build it on a remove machine and copy it on to the server we want.