Make tcp vs. http compile time configurable.