Fix compatibility with P2Pool