Add casts to try to please the OSX buildbot.

Change-Id: I66d546ef2dd276bf151b2956ccbe1f2b6c5cb2f5
Reviewed-on: https://code.wireshark.org/review/5002
Reviewed-by: Anders Broman <a.broman58@gmail.com>