Fix warnings about casts between pointers and differently sized integers.