Make consistent use of qt_socket_fd_t.

Mixing int and qt_socket_fd_t could prevent the backend from accepting new
connections when compiled for Qt 5.