My patches to Bitcoin