Fix "cast from pointer to integer of different size" warning on OpenBSD