Fix build without peerinfo.