Add new DEBUG_LOG macro for debug messages. The messages are enabled when compiled with --enable-debug and they are printed when the -d option is used twice.