build: Move -Wcast-qual to the extra_warnings