fixes compile problem with p2ptrade