two small changes to have tiny-p2p compile, not sure if necessary.