Tools/ConnectionPatcher: Fix build on GCC/Clang