Fix compilation of encoder.c with -D_DEBUG