Added a configure check for rb_hash_foreach().