Wrap actual_len inside #ifdef DEBUG_K12 to avoid gcc 4.6.0 warning reported by