changed all signatures with socket descriptors to qintptr instead of int, which was changed in Qt5