Add a debug target to the template makefile

If the DEBUG variable is set to 1 (e.g. 'DEBUG=1 make target') pelicans debugging output will be enabled.