wafsamba: add -Wcast-qual only to the toplevel (s4) build.