Added missing linker flags to connection test.