Update to version 0.8.6

Applied bitcoin 0.8.6 changes