Fix build errors caused by the silence-logging patch