add way to dynamically disable and enable debug output and debug cflags for valgrind usage