. "(b)any works for diverting the flow of an inland water in connection with the construction or alteration of any dam, weir or other works falling within the preceding paragraph," . . .