Some packaging fixes for download if needed.
Convert to rb_thread_fd_select (old api deprecated).