Fix handshake with Bitcoin-Qt version 0.8.2 and above