Some older gcc versions require an explicit cast here.