configure: enable TCP transport only if we have appropriate libraries available