Fixed a bug in all makefiles where debug variables weren't being inserted into the targets correctly