Adding O_NONBLOCK flag on socket