library: Fixed segfault in case of empty reconnection thread
compilation: Added forgotten include