Fix segfault with gcc 4.8 (due to changed behaviour of sizeof)

With gcc 4.8, sizeof(map->set) is something incredibly big instead of the
expected array size (FD_MAP_MAX). So just use FD_MAP_MAX directly.