better makefile support for debug builds