Fix compilation with no-nextprotoneg.

PR#3106
10 files changed