Avoid compilation of debug messages if NDEBUG is defined