build: make DEBUG() macro optional at compile time

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>