Improvements to debug macros and user config integration in makefiles