p2pd: fix GCC 6 warnings