Fix P2P build