changed #if DEBUG to #ifdef DEBUG to fix make failure when configured with --enable...