Added thread names using pthread_setname_np.
Fixed interrupt sockets being added to the write event, not the read event.