Fix compilation under -Ydebug

Review by @xeno-by