Enable incompatible-pointer warnings on Windows/gcc like Unix/gcc. (#9221)