Fix ktunnel compilation under BSDs