fix map iterator build error on older platforms