connection: fix to repair build on Linux