Fix Nuke build warnings (#21967)